﻿using AutoMapper;
using DongHuMgmt.Web.AutoMapper.Profiles;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DongHuMgmt.Web.AutoMapper
{
    public class AutoMapperConfig
    {
        public static IMapper Mapper { get; private set; }

        public static void Init()
        {
            MapperConfiguration mapperConfiguration = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile<UserMapperProfile>();
            });

            Mapper = mapperConfiguration.CreateMapper();
        }
    }
}